//
//  Level2TableViewCell.h
//  dealer
//
//  Created by  ibokan on 10-9-15.
//  Copyright 2010 tencent.com. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol Level2TableViewCellDelegate;

@interface Level2TableViewCell : UITableViewCell
{
	NSInteger index;
	
	UIImageView *addImageView1;
	UIButton *mapButton;
	UIImageView *phoneImageView1;
	UIButton *phoneButton;
	UIImageView *dateImageView;
	
	UILabel *companyLabel;
	UILabel *phoneLabel;
	UILabel *addressLabel;
	
	UILabel *label1;
	UILabel *label2;
	UILabel *label3;
	
	CGFloat height;
	
	id<Level2TableViewCellDelegate>delegate;

}

@property  NSInteger index;
@property (nonatomic, retain) UIImageView *addImageView1;
@property (nonatomic, retain) UIButton *mapButton;
@property (nonatomic, retain) UIImageView *phoneImageView1;
@property (nonatomic, retain) UIButton *phoneButton;
@property (nonatomic, retain) UIImageView *dateImageView;
@property (nonatomic, retain) id<Level2TableViewCellDelegate>delegate;
@property CGFloat height;

- (void)setCompanyLabelText:(NSString *) companyName;
- (void)setPhoneLabelText:(NSString *) phoneNumber;
- (void)setAddressLabelText:(NSString *) address;


@end

@protocol Level2TableViewCellDelegate

-(void) showMapButtonSelected:(NSInteger) index;

-(void) telephoneButtonSelected:(NSInteger) index;

@end









